package br.com.usjt.sge.teste;

import java.io.Serializable;
import java.util.Date;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;


@ManagedBean(name="counterBean")
@SessionScoped
public class CounterBean implements Serializable{  
  
	private static final long serialVersionUID = -8175304669853961878L;
	private int count;  
	private Date data;
  
    public int getCount() {  
        return count;  
    }  
  
    public void setCount(int count) {  
        this.count = count;  
    }  
      
    public void increment(){  
        count++;  
    }  
    
    public Date getData(){
   	 return data;
   	 }
   	
   	 public void setData(Date data){
   	 this.data = data;
   	 }
   	
   	public void atualizaData(){
   	 data = new Date();
   	}
}  
             